//
//  FovaLocationUtil.h
//  ICBCAbroadiPhoneBank
//
//  Created by KFZXZHUHAQ on 17/4/4.
//
//

#import <Foundation/Foundation.h>
#import <CoreLocation/CoreLocation.h>

typedef void(^GetLocationCallBack)(CLLocation *location, NSError *error);

typedef void(^GetLocationAddressCallBack)(NSArray *result, NSError *error);

@interface FovaLocationUtil : NSObject<CLLocationManagerDelegate>

@property(nonatomic, strong) CLLocationManager* locationManager;

@property(nonatomic, strong) CLGeocoder* geocoder;

- (void)getLocationWithCallBack:(GetLocationCallBack)callBack;
- (void)getLocationAddressWithCallBack:(GetLocationAddressCallBack)callBack;
+ (instancetype)getInstance;

@end
